package rjl.service.impl;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import rjl.dao.Userdao;
import rjl.domain.User;
import rjl.service.Userservice;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by Administrator on 2017/2/28.
 */
@Service
@Transactional
public class UserserviceImpl implements Userservice {

    @Resource
    private Userdao userdao;
    @Override
    public User findusernamepassword(String username, String password) {
        return userdao.findbyusernamepassword(username,password);
    }

    @Override
    public List<User> findAll() {
        return userdao.findAll();
    }
}
